package com.yanqu.data.entity.setting;


import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * wmm 20241116
 * 道具白名单
 */

@FieldTypeAnnotation(tableName = "t_s_monitor_goods_white", desc = "道具白名单")
public class GoodsIgnoreData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "数据库自增主键")
    private long dbId;

    @FieldTypeAnnotation(desc = "渠道；0是所有")
    private int channelId;

    @FieldTypeAnnotation(desc = "道具")
    private int goodsId;

    @FieldTypeAnnotation(desc = "是否删除")
    private int deleted;

    public long getDbId() {
        return dbId;
    }

    public void setDbId(long dbId) {
        this.dbId = dbId;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        if(this.channelId != channelId) {
            this.channelId = channelId;
            setUpdateOption();
        }
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        if(this.goodsId != goodsId) {
            this.goodsId = goodsId;
            setUpdateOption();
        }
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        if(this.deleted != deleted) {
            this.deleted = deleted;
            setUpdateOption();
        }
    }
}
